text: Refine the touch popup
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Apr 2019 23:20:04 +0000 (23:20 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 17 Apr 2019 23:40:26 +0000 (23:40 +0000)
The touch popup was meant to have linked buttons.

gtk/gtktext.c

index 60aa6e7c55e7a5b33fd98fd59e3a1beefc5cad57..7666c78265e89ea29fb1a7c73c711a5141b3f8b8 100644 (file)
@@ -5852,8 +5852,8 @@ gtk_text_selection_bubble_popup_show (gpointer user_data)
   box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 5);
   g_object_set (box, "margin", 10, NULL);
   gtk_widget_show (box);
-  toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 5);
-  gtk_widget_show (toolbar);
+  toolbar = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
+  gtk_style_context_add_class (gtk_widget_get_style_context (toolbar), "linked");
   gtk_container_add (GTK_CONTAINER (priv->selection_bubble), box);
   gtk_container_add (GTK_CONTAINER (box), toolbar);